package com.example.springbootlocal.config;

import com.example.springbootlocal.common.PropertiesUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;


/**
 * @author X.I.O
 * @title: InitConfig
 * @projectName spring-boot-local
 * @description: TODO
 * @date 2021/11/9 19:12
 */
@Configuration
public class InitConfig {

    @Bean("datasource")
    public Map<String, String> getDataSourceMap(){
        Map<String, String> map=new HashMap<>();
        PropertiesUtils.loadProperties("sql",map);
        return map;
    }

}
